package com.hsh.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hsh.persist.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.UUID;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 黄思海
 * @since 2021-06-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("db_user")
@ApiModel(value = "DbUser对象", description = "用户表")
public class DbUser extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "pk 用户id")
    @TableId(value = "user_id", type = IdType.UUID)
    private String userId;

    @ApiModelProperty(value = "手机号（唯一）")
    private String mobile;

    @ApiModelProperty(value = "用户名称（唯一）")
    private String username;

    @ApiModelProperty(value = "用户昵称")
    private String nickname;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "盐")
    private String salt;

    @ApiModelProperty(value = "账户邮箱")
    private String email;

    @ApiModelProperty(value = "性别：1：男 0：女")
    private Integer gender;

    @ApiModelProperty(value = "账户是否激活：1：已激活，0：未激活")
    private Integer activationStatus;

    @ApiModelProperty(value = "账户状态：1：正常 0：异常")
    private Integer accountStatus;

    @ApiModelProperty(value = "直属领导（老板：0）")
    private String immediateLeader;

//    @ApiModelProperty(value = "创建时间")
//    @TableField(fill = FieldFill.INSERT)
//    private LocalDateTime createTime;
//
//    @ApiModelProperty(value = "更新时间")
//    @TableField(fill = FieldFill.INSERT_UPDATE)
//    private LocalDateTime updateTime;
//
//    @ApiModelProperty(value = "创建者")
//    private String createBy;
//
//    @ApiModelProperty(value = "更新人")
//    private String updateBy;
//
    @ApiModelProperty(value = "删除标记：1：已删 0：未删")
    private Integer delFlag;


}
